using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetFSUrlResponse : GeneratedMessageLite<GetFSUrlResponse, GetFSUrlResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetFSUrlResponse, GetFSUrlResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetFSUrlResponse result;
			protected override GetFSUrlResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetFSUrlResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetFSUrlResponse DefaultInstanceForType
			{
				get
				{
					return GetFSUrlResponse.DefaultInstance;
				}
			}
			public string FSURL
			{
				get
				{
					return this.result.FSURL;
				}
				set
				{
					this.SetFSURL(value);
				}
			}
			public Builder()
			{
				this.result = GetFSUrlResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetFSUrlResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetFSUrlResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetFSUrlResponse other = this.result;
					this.result = new GetFSUrlResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetFSUrlResponse.Builder Clear()
			{
				this.result = GetFSUrlResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetFSUrlResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetFSUrlResponse.Builder(this.result);
				}
				return new GetFSUrlResponse.Builder().MergeFrom(this.result);
			}
			public override GetFSUrlResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetFSUrlResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetFSUrlResponse)
				{
					return this.MergeFrom((GetFSUrlResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetFSUrlResponse.Builder MergeFrom(GetFSUrlResponse other)
			{
				return this;
			}
			public override GetFSUrlResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetFSUrlResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetFSUrlResponse._getFSUrlResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetFSUrlResponse._getFSUrlResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasFSURL = input.ReadString(ref this.result.fSURL_);
					}
				}
				return this;
			}
			public GetFSUrlResponse.Builder SetFSURL(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFSURL = true;
				this.result.fSURL_ = value;
				return this;
			}
			public GetFSUrlResponse.Builder ClearFSURL()
			{
				this.PrepareBuilder();
				this.result.hasFSURL = false;
				this.result.fSURL_ = "";
				return this;
			}
		}
		public const int FSURLFieldNumber = 1;
		private static readonly GetFSUrlResponse defaultInstance;
		private static readonly string[] _getFSUrlResponseFieldNames;
		private static readonly uint[] _getFSUrlResponseFieldTags;
		private bool hasFSURL;
		private string fSURL_ = "";
		private int memoizedSerializedSize = -1;
		public static GetFSUrlResponse DefaultInstance
		{
			get
			{
				return GetFSUrlResponse.defaultInstance;
			}
		}
		public override GetFSUrlResponse DefaultInstanceForType
		{
			get
			{
				return GetFSUrlResponse.DefaultInstance;
			}
		}
		protected override GetFSUrlResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string FSURL
		{
			get
			{
				return this.fSURL_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFSURL)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.FSURL);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetFSUrlResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getFSUrlResponseFieldNames = GetFSUrlResponse._getFSUrlResponseFieldNames;
			if (this.hasFSURL)
			{
				output.WriteString(1, getFSUrlResponseFieldNames[0], this.FSURL);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFSURL)
			{
				num ^= this.fSURL_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetFSUrlResponse getFSUrlResponse = value as GetFSUrlResponse;
			return getFSUrlResponse != null && (this.hasFSURL == getFSUrlResponse.hasFSURL && (!this.hasFSURL || this.fSURL_.Equals(getFSUrlResponse.fSURL_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetFSUrlResponse, GetFSUrlResponse.Builder>.PrintField("FSURL", this.hasFSURL, this.fSURL_, writer);
		}
		public static GetFSUrlResponse ParseFrom(byte[] data)
		{
			return GetFSUrlResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetFSUrlResponse MakeReadOnly()
		{
			return this;
		}
		public static GetFSUrlResponse.Builder CreateBuilder()
		{
			return new GetFSUrlResponse.Builder();
		}
		public override GetFSUrlResponse.Builder ToBuilder()
		{
			return GetFSUrlResponse.CreateBuilder(this);
		}
		public override GetFSUrlResponse.Builder CreateBuilderForType()
		{
			return new GetFSUrlResponse.Builder();
		}
		public static GetFSUrlResponse.Builder CreateBuilder(GetFSUrlResponse prototype)
		{
			return new GetFSUrlResponse.Builder(prototype);
		}
		static GetFSUrlResponse()
		{
			GetFSUrlResponse.defaultInstance = new GetFSUrlResponse().MakeReadOnly();
			GetFSUrlResponse._getFSUrlResponseFieldNames = new string[]
			{
				"FSURL"
			};
			GetFSUrlResponse._getFSUrlResponseFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.GetFSUrlResponse.Descriptor, null);
		}
	}
}
